package request


type AlibabaBeneiftDrawRequest struct {
    /*
        奖池唯一标识，奖池创建时即生成     */
    Ename  *string `json:"ename" required:"true" `
    /*
        调用方AppName：规定为promotioncenter-${appId}     */
    AppName  *string `json:"app_name" required:"true" `
    /*
        调用方应用ip，非必填     */
    Ip  *string `json:"ip,omitempty" required:"false" `
}

func (s *AlibabaBeneiftDrawRequest) SetEname(v string) *AlibabaBeneiftDrawRequest {
    s.Ename = &v
    return s
}
func (s *AlibabaBeneiftDrawRequest) SetAppName(v string) *AlibabaBeneiftDrawRequest {
    s.AppName = &v
    return s
}
func (s *AlibabaBeneiftDrawRequest) SetIp(v string) *AlibabaBeneiftDrawRequest {
    s.Ip = &v
    return s
}

func (req *AlibabaBeneiftDrawRequest) ToMap() map[string]interface{} {
    paramMap := make(map[string]interface{})
    if(req.Ename != nil) {
        paramMap["ename"] = *req.Ename
    }
    if(req.AppName != nil) {
        paramMap["app_name"] = *req.AppName
    }
    if(req.Ip != nil) {
        paramMap["ip"] = *req.Ip
    }
    return paramMap
}

func (req *AlibabaBeneiftDrawRequest) ToFileMap() map[string]interface{} {
    fileMap := make(map[string]interface{})
    return fileMap
}